'use strict';
const Service = require('egg').Service;
class AccountService extends Service {
    async getUserWithUsername(account) {
        const { app } = this;
        const accountList = await app.mysql.select('hsk_account', { where: { account } });
        return accountList ? accountList[0] : null;
    }
}
module.exports = AccountService;
